import 'package:json_annotation/json_annotation.dart';

part 'store_apply_query.g.dart';

@JsonSerializable()
class StoreApplyQuery {
  final int id;
  final String storeName;
  final String logo;
  final String idCard;
  final String license;
  final String auditStatus; // NOT_APPLY, AUDITING, AUDIT_SUCCESS, AUDIT_FAIL
  final String auditStatusText;
  final String auditNote;

  StoreApplyQuery(
    this.id,
    this.storeName,
    this.logo,
    this.idCard,
    this.license,
    this.auditStatus,
    this.auditStatusText,
    this.auditNote,
  );

  factory StoreApplyQuery.fromJson(Map<String, dynamic> json) => _$StoreApplyQueryFromJson(json);

  Map<String, dynamic> toJson() => _$StoreApplyQueryToJson(this);
}
